<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/common/taglib.jsp"%>

			<div class="form-group">
					<label for="">用户名</label>
					<input type="text" name="username" class="form-control" value="${user.username}" placeholder="输入用户名"/>
			</div>
			<div class="form-group">
					<label for="">密码</label>
					<input type="text" name="password" class="form-control" value="${user.password}" placeholder="输入密码"/>
			</div>
			<div class="form-group">
					<label for="">年龄</label>
					<input type="number" name="age" class="form-control" value="${user.age}" placeholder="输入年龄"/>
			</div>
			<div class="form-group">
					<div class="checkbox">
				      <label>
				      	<c:choose>
					      	<c:when test="${user.role}">
						        <input type="checkbox" name="role" checked />
					        </c:when>
					        <c:otherwise>
					        	<input type="checkbox" name="role" />
					        </c:otherwise>
				        </c:choose>
						管理权限
				      </label>
				    </div>
			</div>

<button type="submit" class="btn btn-primary">提交</button>
<a href="${admin}/system/user" class="hs-cancel">
	<button type="button" class="btn btn-default">取消</button>
</a>
<hs:validate className="org.hishen.example.entity.system.User"/>
